﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace PracticeWPF
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        
        //应用程序启动时执行的事见
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            Manage mainForm = new PracticeWPF.Manage();
            MainWindow loginForm = new PracticeWPF.MainWindow();
            if (loginForm.ShowDialog() == true)
            {
                mainForm.Show();
            }
            else
            {
                mainForm.Close();
            }
        }
        
        //保存登录对象

      //  public static Models.Admin currentAdmin = null;
       
    }
}
